import { request } from '@/service/request';

/** 获取Emoji消灭统计列表 */
export function fetchGetEmojiStatisticsList (params?: Api.Games.EmojiStatisticsSearchParams) {
    return request<Api.Games.EmojiStatisticsList>({
        url: '/games/emojiStatistics/list',
        method: 'get',
        params
    });
}

/** 新增Emoji消灭统计 */
export function fetchCreateEmojiStatistics (data: Api.Games.EmojiStatisticsOperateParams) {
    return request<boolean>({
        url: '/games/emojiStatistics',
        method: 'post',
        data
    });
}

/** 修改Emoji消灭统计 */
export function fetchUpdateEmojiStatistics (data: Api.Games.EmojiStatisticsOperateParams) {
    return request<boolean>({
        url: '/games/emojiStatistics',
        method: 'put',
        data
    });
}

/** 批量删除Emoji消灭统计 */
export function fetchBatchDeleteEmojiStatistics (statIds: CommonType.IdType[]) {
    return request<boolean>({
        url: `/games/emojiStatistics/${statIds.join(',')}`,
        method: 'delete'
    });
}
